import Login from '../pages/Login';
import Index from '../pages/admin/dashboard/index';
import List from '../pages/admin/products/List';
import Edit from '../pages/admin/products/Edit';
import Notfound from '../pages/NotFound';


export const mainRoutes = [{
    path: '/login',
    component: Login
}, {
    path: '/404',
    component: Notfound
}]

export const adminRoutes = [{
        path: '/admin/dashboard',
        component: Index,
        isShow:true,
        title:'首页',
        icon:"sketch",
    }, {
        path: '/admin/products',
        component: List,
        isShow:true,
        // 加上exact表示全部匹配以后才能进入
        exact: true,
        title:'商品管理',
        icon:"reddit",
    },
    {
        path: '/admin/edit/:id?',
        component: Edit,
        isShow:false,
    },

]